﻿using System;
using System.Collections.Generic;
using System.Text;

namespace hyjx.comm.Constants
{
    /// <summary>
    /// Melsec 协议常量
    /// </summary>
    public class MelsecConstant
    {
        /// <summary>
        /// 读取指令常量
        /// </summary>
        public static byte[] ReadCommandConstant => new byte[] { 0x01, 0x04 };
        /// <summary>
        /// 写入指令常量
        /// </summary>
        public static byte[] WriteCommandConstant => new byte[] { 0x01, 0x14 };

        /// <summary>
        /// Q/L 系列读写字单元子指令常量
        /// </summary>
        public static byte[] QLWordChildCommandConstant => new byte[] { 0x00, 0x00 };
        /// <summary>
        /// iQ-R 系列读写字单元子指令常量
        /// </summary>
        public static byte[] IQRWordChildCommandConstant => new byte[] { 0x02, 0x00 };
        /// <summary>
        /// Q/L 系列读写位单元子指令常量
        /// </summary>
        public static byte[] QLBitChildCommandConstant => new byte[] { 0x01, 0x00 };
        /// <summary>
        /// iQ-R 系列读写位单元子指令常量
        /// </summary>
        public static byte[] IQRBitChildCommandConstant => new byte[] { 0x03, 0x00 };




    }
}
